package com.ganbo.thread;

public class CreateThread2 implements Runnable {

    public void run() {
        System.out.println(Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        CreateThread2 c = new CreateThread2();
        Thread t = new Thread(c);
        t.start();

        System.out.println(Thread.currentThread().getName());
    }
}
